%define dont_relink 1

Summary(ru_RU.UTF-8): Директория с документацией для МОС
Summary:	Documentation directory for MOS
Name:		mos-docdir
Version:	1.1
Release:	3
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://os.mos.ru
Vendor:		MOS
Source1:	school-mos-ru-doc.desktop
Source2:	mos-info.svg
Source3:	Основы работы в МОС
Source4:	Обучение МОС
Source5:	mos-in-the-work-of-the-teacher.desktop

BuildRequires: desktop-file-utils
BuildArch:	noarch

%description
Updated directory with documentation for MOS.

%description -l ru_RU.UTF-8
Обновляемая директория с документацией для МОС.

%files
%dir %{_datadir}/mos-doc
%{_iconsdir}/hicolor/scalable/apps/mos-info.svg
"%{_sysconfdir}/skel/Рабочий стол/Документация"
%{_datadir}/applications/school-mos-ru-doc.desktop
"%{_datadir}/mos-doc/Основы работы в МОС"
%{_datadir}/applications/mos-in-the-work-of-the-teacher.desktop
"%{_datadir}/mos-doc/Обучение МОС"

#------------------------------------------------------------------

%prep
%setup -T -c

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/mos-doc
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_sysconfdir}"/skel/Рабочий стол"

install -m644 "%{SOURCE1}" %{buildroot}%{_datadir}/applications/
install -m644 "%{SOURCE2}" %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
install -m644 "%{SOURCE3}" %{buildroot}%{_datadir}/mos-doc/
install -m644 "%{SOURCE4}" %{buildroot}%{_datadir}/mos-doc/
install -m644 "%{SOURCE5}" %{buildroot}%{_datadir}/applications/
ln -sf %{_datadir}/mos-doc "%{buildroot}%{_sysconfdir}/skel/Рабочий стол/Документация"
